package com.ihr360.cnb.module.common.service.fallback;

import cn.irenshi.organization.meta.entity.organization.CompanyStructureEntity;
import com.ihr360.cnb.module.common.service.OrganizationService;
import com.ihr360.commons.exception.Ihr360Exception;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author Stone.Shi
 * @description
 * @date 2018-02-07 10:08:35.
 */
@Component
public class OrganizationServiceFallback implements OrganizationService {

    @Override
    public List<CompanyStructureEntity> getCompanyStructure(String companyId) {
        throw new Ihr360Exception("", "调用组织架构服务失败");
    }

    @Override
    public Map<Long, String> getDepartmentFullNames(String companyId) {
        throw new Ihr360Exception("", "调用组织架构服务失败");
    }
}
